﻿using MobileCommissionManagement.Common;

namespace MobileCommissionManagement.Framework
{
    public class EntityTypeSaveValidator
    {
        public EntityTypeErrorMotive IsValid(TiposEntidade entityType)
        {
            if (entityType.Nome == string.Empty)
                return EntityTypeErrorMotive.NameIsMandatory;
            return EntityTypeErrorMotive.NoError;
        }
    }
}
